<template>
  <v-card class="d-flex align-center mt-5">
    <div class="d-flex justify-space-between flex-wrap flex-md-nowrap flex-column flex-md-row">
      <div>
        <v-card-title style="font-weight: bold;line-height:120%">{{ newsInfo.title }}</v-card-title>
        <v-divider></v-divider>
        <v-card-text class="pb-1">{{ newsInfo.content }}</v-card-text>
        <v-card-actions class="justify-space-between" style="padding: 5px">
          <v-btn @click="gotoNews" text color="primary" dark style="width: 99%">
            <span class="ms-2">查看全文</span>
          </v-btn>
        </v-card-actions>
      </div>
    </div>
  </v-card>
</template>

<script>
export default {
  props: ["newsInfo"],
  methods: {
    gotoNews() {
      console.log(this.newsInfo);
      window.open(this.newsInfo.link);
    },
  },
};
</script>

<style></style>
